<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                xmlns:ds="http://deltaset.org/deltaset-faces"
                xmlns:mi="http://java.sun.com/jsf/composite/deltaset.meta/internal"
                xmlns:composite="http://java.sun.com/jsf/composite"> 

    <ds:fieldset width="550px">
        <h:messages styleClass="ui-state-highlight ui-corner-all"/>                   
        <mi:form-fields fields="#{meta.formFields}" model="#{meta.model}" meta="#{meta}" owner="#{meta.modelClass}" formId="#{formId}"/>
        <ds:outputText label="Id" value="#{meta.getModelId(meta.model)}"/>
    </ds:fieldset>

    <div style="text-align: right">
        <div>
            <c:forEach items="#{meta.otherContextActions}" var="action">
                <mi:commandButton metaAction="#{action}"
                                  model="#{meta.model}"
                                  meta="#{meta}"                                         
                                  noVoidOnEvent="#{executePanelOpen}"
                                  noVoidRender="#{executorId}"
                                  voidOnEvent="#{executePanelOpen}"
                                  voidRender="#{executorId}"
                                  parameterOnEvent="#{executePanelOpen}"
                                  parameterRender="#{executorId}"
                                  style="font-size: 0.8em;"
                                  />
            </c:forEach>
        </div>
        <c:forEach items="#{meta.contextActions}" var="action">
            <mi:commandButton metaAction="#{action}"
                              model="#{meta.model}"
                              meta="#{meta}"
                              noVoidExecute="@form"                                          
                              noVoidRender="#{editPanelFormId}"
                              voidExecute="@form"
                              voidOnEvent="#{editPanelClose}"
                              voidRender="#{pagerId} #{editPanelFormId}"
                              parameterExecute="@form"
                              parameterOnEvent="#{switchEditForExecute}"
                              parameterRender="@form #{executorId}"
                              />                        
        </c:forEach>
    </div>  

</ui:composition>
